/**
 * 实现对三个整数进行排序，输出时按照从小到大的顺序输出。
 */

import java.util.Scanner;

public class Sort3Nums {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int tmp;
        if (num1 > num2) {
            tmp = num1;
            num1 = num2;
            num2 = tmp;
        }
        if (num1 > num3) {
            tmp = num1;
            num1 = num3;
            num3 = tmp;
        }

        if (num2 > num3) {
            tmp = num2;
            num2 = num3;
            num3 = tmp;
        }
        System.out.println(num1 + " " + num2 + " " + num3);
    }
}
